git config --get user.name
git config --get user.email
Hvis noe av det ikke stemmer kan du fikse det sånn:
git config --global user.name "geirawsm"
git config --global user.email "geirawsm@pm.me"
ssh-keygen -t ed25519 -f ~/.ssh/[navn på nøkkelen]
ssh-keygen -t ed25519 -f ~/.ssh/github-dotfiles
[~/.ssh/config]
Host [ønsket navn på host] github.com
Hostname github.com
IdentityFile ~/.ssh/[navn på nøkkelen]
[~/.ssh/config]
Host github-dotfiles github.com
Hostname github.com
IdentityFile ~/.ssh/github-dotfiles
cat ~/.ssh/[navn på nøkkelen].pub
cat ~/.ssh/github-dotfiles.pub
git clone men erstatt github-com med den nye hosten du la inn i punkt 3.git clone git@[ny ssh host]:geirawsm/[navn på repo].git
git clone git@github-dotfiles:geirawsm/.dotfiles.git
[.git/config]
[remote "origin"]
url = git@[ønsket navn på host]:[bruker]/[repo].git
[.git/config]
[remote "origin"]
url = git@github-dotfiles:[bruker]/[repo].git
ssh -T git@[ønsket navn på host]
ssh -T git@github-dotfiles
Last modified: Sun Dec 7 12:40:34 2025